package com.project;

public class MyTest {

    public static void main(String[] args) {
        new Son();
        new Son();
    }
}
class Father{
    static{
        System.out.println("父类静态块");
    }
    {
        System.out.println("父类实例化块");
    }
    public Father(){
        System.out.println("父类构造");
    }
}

class Son extends  Father{
    static{
        System.out.println("子类静态块");
    }
    {
        System.out.println("子类实例化块");
    }
    public Son(){
        System.out.println("子类构造");
    }
}
